<template>
  <div class="home">
    <div
      id="ssss"
      @keydown="sfn"
      style="height: 400px; width: 400px; background: red"></div>
  </div>
</template>

<script setup>
  import { onMounted } from 'vue';
  import { RdappDispatchSdk } from '../../public/RdappDispatchSdk';
  console.log(RdappDispatchSdk, 99);

  const sfn = (e) => {
    console.log(3333);
  };
  onMounted(() => {
    document.addEventListener('keydown', (e) => {
      console.log(e, 'e');
      console.log(document.activeElement, 8889);
      e.preventDefault();
    });
  });
</script>

<style lang="less">
  #draggable {
    width: 100px;
    height: 100px;
    background: red;
    position: absolute;
    cursor: pointer;
  }
</style>
